<template>
	<JsBox class="demoForm" :buttons="buttons"><JsTree :params="fTree"/></JsBox>
</template>

<script>
import cComponent from './config/cnf_component';
import jiess from '@/jiess';
export default {
	mixins: [jiess.mixin_base],
	data() {
		return {
			pageConfig: {
				form: {
					paramKey: 'main',
					resource: cComponent
				}
			},
			buttons: [
				{
					label: '发送',
					key: 'send'
				},
				{
					label: '重置',
					key: 'reset'
				},
				{
					label: '刷新',
					key: 'reLoad'
				}
			]
		};
	},
	created() {
		this.init(this.pageConfig, undefined, {
			i18nFieldLabel: 'label',
			i18nPathLabel: 'demo.config',
			i18nPathPlaceholder: 'demo.config',
			i18nPathInnerText: 'demo.config',
			i18nPathOption: 'demo.config'
		});
	}
};
</script>
